package com.yuexunit.operationman.nbsy.module.SurgicalReceipt.ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.yuexunit.operationman.nbsy.R;
import com.yuexunit.operationman.nbsy.base.BaseKJActivity;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by chenss on 2017/7/26 0026.
 */

public class Act_SurgicalReceipt_Sign extends BaseKJActivity {

    @Bind(R.id.titlebar_tv_title)
    TextView titlebarTvTitle;

    @Override
    public void setRootView() {
        setContentView(R.layout.act_surgicalreceipt_sign);
        ButterKnife.bind(this);
    }

    @Override
    public void initData() {
        super.initData();
        setTitle();
    }

    private void setTitle()
    {
        titlebarTvTitle.setText("签名");
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }

    @OnClick({R.id.titlebar_img_back, R.id.sign_01, R.id.sign_02, R.id.sign_03})
    public void onClick(View view) {
        Intent intent = new Intent(aty,Act_SurgicalReceipt_Sign_Content.class);
        switch (view.getId()) {
            case R.id.titlebar_img_back:
                finish();
                break;
            case R.id.sign_01:
                intent.putExtra("type",1);
                startActivity(intent);
                break;
            case R.id.sign_02:
                intent.putExtra("type",2);
                startActivity(intent);
                break;
            case R.id.sign_03:
                intent.putExtra("type",3);
                startActivity(intent);
                break;
        }
    }
}
